package com.example.haoqisystem.respository;

import com.example.haoqisystem.entity.ApplicationCompany;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ApplicationCompanyRepository extends JpaRepository<ApplicationCompany,Long>
        , JpaSpecificationExecutor<ApplicationCompany> {
    Optional<ApplicationCompany> findByIdAndDeletedFalse(Long id);

    Optional<ApplicationCompany> findByAccountAndDeletedFalse(String account);
}
